<?php defined('SYSPATH') or die('No direct script access.');
$mydatetime      = Helper_mydatetime::factory();
$arraylist      = Helper_arraylist::factory();
$display         = Helper_displayitems::factory();
?>

<?php $arrays = $arraylist->print_array($table,$id) ?>

<div style="max-width: 800px; border: 1px solid black; padding: 10px; height: 300px;">
	<div style="text-align: center; font-weight: bold;">SALES ORDER</div>
	Detail sales order :<br><br>
	<table>
		<tr>
			<td>ID Sales Order</td>
			<td>:</td>
			<td><?php echo $arrays[0]['id'] ?></td>
		</tr>
		<tr>
			<td>ID Pembayaran</td>
			<td>:</td>
			<td><?php echo $arrays[0]['id_pembayaran'] ?></td>
		</tr>
		<tr>
			<td>Tgl</td>
			<td>:</td>
			<td><?php echo $arrays[0]['tgl'] ?></td>
		</tr>
		<tr>
			<td>Jenis Kiriman</td>
			<td>:</td>
			<td><?php echo $display->show_value($arrays[0]['jenis_kiriman'],'jenis_kiriman') ?></td>
		</tr>
		<tr>
			<td>Harga</td>
			<td>:</td>
			<td><?php echo $arrays[0]['harga'] ?></td>
		</tr>
		<tr>
			<td>Kota Asal</td>
			<td>:</td>
			<td><?php echo $display->show_value($arrays[0]['kota_asal'],'kota') ?></td>
		</tr>	
		<tr>
			<td>Kota Tujuan</td>
			<td>:</td>
			<td><?php echo $display->show_value($arrays[0]['kota_tujuan'],'kota') ?></td>
		</tr>	
		<tr>
			<td>Jumlah Barang</td>
			<td>:</td>
			<td><?php echo $arrays[0]['jumlah_barang'] ?></td>
		</tr>	
		<tr>
			<td>Total Barang</td>
			<td>:</td>
			<td><?php echo $arrays[0]['total_biaya'] ?></td>
		</tr>	
	</table>
</div>























